'use strict';

var React = require('react');
var AMR = require('amazeui-react');
var AuthenticateWrapper = require('../components/AuthenticateWrapper');

var Index = React.createClass({
  render: function() {
    return (
      <div className="ask-banner">
        <AMR.Container>
          <h1>Hello {this.props.user ? this.props.user.username : 'World'}!</h1>
          <h2><%= greetingMsg %></h2>
        </AMR.Container>
      </div>
    );
  }
});

module.exports = AuthenticateWrapper(Index);
